﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="ucLeftMenu.ascx.cs" Inherits="userControls_ucLeftMenu" %>
<style type="text/css">
    ul,li {
        margin: 0;
        padding: 0;
        list-style: none;
    }
    .leftMenu a
    {
        color: #000;
        text-decoration: none;
        display: block;
        padding: 2px 2px 2px 5px;
        margin-top: 5px;
    }

    .leftMenu li:hover a
    {
        background: brown;
        color: #FFF;
    }
    .leftMenu a.active {
        color: brown;
        font-weight: bold;
    }
    .leftMenu li div
    {
        display: none;
    }
    .leftMenu li:hover div
    {
        display: block;
    }
</style>
<div class="leftMenu" style="border: solid 1px burlywood; margin-top: 10px;" id="menuAccount" runat="server">
    <div style="text-align: center; font-weight: bold">TÀI KHOẢN</div>
    <a href="/pages/account/Info.aspx" <%= (LeftMenu == 21) ? " class=\"active\"" : "" %>>Thông tin toàn khoản</a>
    <a href="/pages/account/Transaction.aspx" <%= (LeftMenu == 22) ? " class=\"active\"" : "" %>>Lịch sử giao dịch</a>
</div>
<div class="leftMenu" style="border: solid 1px burlywood; margin-top: 10px;">
    <div style="text-align: center; font-weight: bold">NẠP VÀNG</div>
    <ul>
        <li>
            <a href="/pages/paymentIn/Card.aspx" <%=(LeftMenu==1)?" class=\"active\"":"" %>>Thẻ cào trả trước</a>
        </li>
        <li style="position: relative">
            <a href="/pages/paymentIn/ItemIn.aspx" >Mua vàng trực tuyến</a>
            <%if (LeftMenu != 2 && LeftMenu != 3)
              {%>
            <div style="position: absolute; left: 168px; width: 180px; top:0; background: brown">
                <a style="margin-left: 10px" href="/pages/paymentIn/ItemIn.aspx" <%= (LeftMenu == 2) ? " class=\"active\"" : "" %>>Mua vàng theo gói</a>
                <a style="margin-left: 10px" href="/pages/paymentIn/SingleItemIn.aspx" <%= (LeftMenu == 3) ? " class=\"active\"" : "" %>>Mua vàng lẻ</a>
            </div>
            <% } %>
    
        </li>
        <%if (LeftMenu == 2 || LeftMenu == 3)
          {%>
        <li>
            <a style="margin-left: 10px" href="/pages/paymentIn/ItemIn.aspx" <%= (LeftMenu == 2) ? " class=\"active\"" : "" %>>Mua vàng theo gói</a>
        </li>
        <li>
            <a style="margin-left: 10px" href="/pages/paymentIn/SingleItemIn.aspx" <%= (LeftMenu == 3) ? " class=\"active\"" : "" %>>Mua vàng lẻ</a>
        </li>
        <% } %>
        <li>
            <a href="/pages/paymentIn/SMS.aspx" <%= (LeftMenu == 4) ? " class=\"active\"" : "" %>>SMS</a>
        </li>
        <li>
            <a href="/pages/paymentIn/AgToAu.aspx" <%= (LeftMenu == 5) ? " class=\"active\"" : "" %>>Đổi bạc lấy vàng</a>
        </li>
        <li>
            <a href="/pages/paymentIn/PolicyPaymentIn.aspx"<%= (LeftMenu == 6) ? " class=\"active\"" : "" %>>Chính sách nạp vàng</a>
        </li>
    </ul>
</div>
<div class="leftMenu" style="border: solid 1px burlywood; margin-top: 10px;">
    <div style="text-align: center; font-weight: bold">ĐỔI TIỀN</div>
    <ul>
        <li>
            <a href="/pages/paymentOut/ExChangeVND.aspx" <%= (LeftMenu == 11) ? " class=\"active\"" : "" %>>Chuyển khoản tiền mặt</a>
        </li>
        <li>
            <a href="/pages/paymentOut/AuToCard.aspx" <%= (LeftMenu == 12) ? " class=\"active\"" : "" %>>Mua mã thẻ</a>
        </li>
        <li>
            <a href="/pages/paymentOut/AuToVCoin.aspx" <%= (LeftMenu == 13) ? " class=\"active\"" : "" %>>Chuyển khoản Vcoin</a>
        </li>
        <li>
            <a href="/pages/paymentOut/PolicyPaymentOut.aspx" <%= (LeftMenu == 14) ? " class=\"active\"" : "" %>>Điều khoản đổi tiền</a>
        </li>
    </ul>    
</div>
